<html {$html_attrs}>
<head>
<title>Parecer do Macroprocesso</title>

<style>
.grid_block {  
margin-top:5px;
border-collapse: collapse;
align:center;
width:95%;
border: solid black 1px;
} 
.grid_block td { 
 padding: 5px; 
 margin: 0px; 
 border: solid #cccccc 1px;
}
.grid_block .gridspacing {width:20px;border-top-color:white; border-bottom-color:white;background-color:white}
@media print 
{
	a.pdf {display:none}
}
.printpage {page-break-after:always}
.pagesummary
{
background-color:#ffffbb;
}
.globalsummary
{
background-color:#ffe0b0;
}

{$cssdata}

.group_1
{
background-color: #FFFFE0;
}
.group_2
{
background-color: #FFFFE0;
}


.nbgroup_1
{
background-color: #FFFFE0;
border-style:none;
}
.nbgroup_2
{
background-color: #FFFFE0;
border-style:none;
}


.header_1
{
background-color: #D8D8BE;
}
.header_2
{
background-color: #D8D8BE;
}

</style> 
</head>
<body topmargin=5 style="background:white">
{BEGIN body}{BEGIN page}
<div>

<h1>Parecer do Macroprocesso</h1>
<div id='selpage'>Página {$pageno} de {$maxpages} </div>

{BEGIN grid_block}
<table align="center" cellpadding=5 class="grid_block">
{BEGIN grid_row}
<!-------------------------------------  group headers ----------------------------------------->
{BEGIN grupoperiodo_newgroup}
<tr>
<td class=header_1 colspan=10>
Período:&nbsp;
<font style="font-weight:900">{$grupoperiodo_grval}</font></td>
</tr>
{END grupoperiodo_newgroup}
{BEGIN periodo_newgroup}
<tr>
<td class=group_1>&nbsp;</td>
<td class=header_2 colspan=9>
Periodo:&nbsp;
<font style="font-weight:900">{$periodo_grval}</font></td>
</tr>
<tr>
<td class=group_1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td class=group_2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td class=blackshade><b>Nome Unidade</b></td>
<td class=blackshade><b>Planejado</b></td>
<td class=blackshade><b>Realizado</b></td>
<td class=blackshade><b>Comentários</b></td>
<td class=blackshade><b>Atingimento da Meta</b></td>
<td class=blackshade><b>Ano</b></td>
<td class=blackshade><b>Macroprocessos</b></td>
<td class=blackshade><b>Indicador Estratégico</b></td>
</tr>
{END periodo_newgroup}
<!-------------------------------------  data ----------------------------------------->
{BEGIN row_data}
<tr>
			<td class=group_1>&nbsp;</td>
			<td class=group_2>&nbsp;</td>
	<td class=data>{$uorg_value}</td>
	<td class=data>{$meta_planejada_value}</td>
	<td class=data>{$meta_executada_value}</td>
	<td class=data>{$resultados_value}</td>
	<td class=data>{$status_value}</td>
	<td class=data>{$id_ano_planejamento_value}</td>
	<td class=data>{$id_macroprocessos_value}</td>
	<td class=data>{$id_indicador_estrategico_value}</td>
</tr>
{END row_data}
<!-------------------------------------  group summary ----------------------------------------->
{BEGIN periodo_endgroup}
<tr>
	<td class=group_1>&nbsp;</td>
	<td 1 class=group_2
		colspan=9 >
	Resumo para Periodo {$periodo_grval}
	 - {$groupperiodo_total_cnt} Total de registros</div></td>
</tr>
<!--  Sum -->
<tr>
			<td class=group_1>&nbsp;</td>
			<td class=group_2
		>Soma</td>
			<td class=group_2
		>&nbsp;</td>
			<td class=group_2
		>{$groupperiodo_totalmeta_planejada_sum}</td>
			<td class=group_2
		>{$groupperiodo_totalmeta_executada_sum}</td>
			<td class=group_2
		>&nbsp;</td>
			<td class=group_2
		>&nbsp;</td>
			<td class=group_2
		>&nbsp;</td>
			<td class=group_2
		>&nbsp;</td>
			<td class=group_2
		>&nbsp;</td>
</tr>	
{END periodo_endgroup}
{END grid_row}
</table>
{END grid_block}
</div>
{END page}{END body}
</body>
</html>